package w2

object ZipOPerate {
  def main(args: Array[String]): Unit = {
    val a = Array("xuewuhen", "fengxiang", "zhurong", "xiaocai")
    val b = Array(21, 22, 23, 24)

    var c = a.zip(b)
    println(c)
    c.foreach(println)
    //c是数组，数组中的元素是二维元组
    println("><<<<<<<<<<<<<<")
    println(c(2)._1)
  }
}
